package com.etonedu.meals.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class DeviceInfoBean implements Parcelable {

    private DeviceDetaiBean agwEcbDeviceDetailDto;
    private int ifBind;
    private String qrcContent;

    public DeviceDetaiBean getAgwEcbDeviceDetailDto() {
        return agwEcbDeviceDetailDto;
    }

    public void setAgwEcbDeviceDetailDto(DeviceDetaiBean agwEcbDeviceDetailDto) {
        this.agwEcbDeviceDetailDto = agwEcbDeviceDetailDto;
    }

    public int getIfBind() {
        return ifBind;
    }

    public void setIfBind(int ifBind) {
        this.ifBind = ifBind;
    }

    public String getQrcContent() {
        return qrcContent;
    }

    public void setQrcContent(String qrcContent) {
        this.qrcContent = qrcContent;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.agwEcbDeviceDetailDto, flags);
        dest.writeInt(this.ifBind);
        dest.writeString(this.qrcContent);
    }

    public DeviceInfoBean() {
    }

    protected DeviceInfoBean(Parcel in) {
        this.agwEcbDeviceDetailDto = in.readParcelable(DeviceDetaiBean.class.getClassLoader());
        this.ifBind = in.readInt();
        this.qrcContent = in.readString();
    }

    public static final Creator<DeviceInfoBean> CREATOR = new Creator<DeviceInfoBean>() {
        @Override
        public DeviceInfoBean createFromParcel(Parcel source) {
            return new DeviceInfoBean(source);
        }

        @Override
        public DeviceInfoBean[] newArray(int size) {
            return new DeviceInfoBean[size];
        }
    };
}
